function lpcvdCopy(destination,source,LineNum)
% Copy the first LINENUM lines of SOURCE to DESTINATION
if nargin == 2
    LineNum = 100;
end
fid_s = fopen(source);
fid_d = fopen(destination,'w');

for i = 1:LineNum
    s = fgetl(fid_s);
    fprintf(fid_d,'%s\n',s);
end

fclose(fid_s);
fclose(fid_d);